/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package spaceinvaders;

import java.awt.Point;

/**
 *
 * @author jorge
 */
public class MarcianoCangrejo extends Figura
{
    private String formaA = "0040000040000040004000004444444000440444044040444444404404444444044040000040400044044000";
    private String formaB = "0040000040040040004004404444444044440444044444444444444044444444400040000040004000000040";
    private int forma = 0;

    public MarcianoCangrejo(Point punto)
    {
        super(punto, 8, 11);
        super.darForma(this.formaA);
    }

    @Override
    public void cambiarForma()
    {
        if(this.forma == 0)
        {
            super.darForma(this.formaB);
            this.forma = 1;
        }
        else
        {
            super.darForma(this.formaA);
            this.forma = 0;
        }
    }
}
